body {
	background-color: #f0f0f2;
	font-family: PingFangSC-Regular, -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
}

div {
	margin: 0;
	padding: 0;
}

.flow-node div {
	box-sizing: border-box;
}


#flow-container {
	/* width: 900px; */
	margin: 0 auto;
	display: inline-flex;
	flex-direction: column;
	min-width: 600px;
}

.branch .nodes {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-wrap: nowrap;
}

.flow-node .approval,
.flow-node .start,
.flow-node .end,
.flow-node .condition{
	width: 200px;
	height: 150px;
	position: relative;
}

.flow-node .flow-node-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 200px;
	max-height: 92px;
	z-index: 2;
	cursor: pointer;
	background: #a9b4cd;
	border-radius: 8px;
	overflow: hidden;
}


.flow-node .flow-node-container .node-title {
	font-size: 12px;
	padding: 4px 4px 4px 7px;
	font-weight: 600;
	color: #fff;
	line-height: 20px;
}

.flow-node .approval .flow-node-container {
	background-color: #f80;
}

.flow-node .cc .flow-node-container {
	background-color: #3370ff;
}

.flow-node .handle .flow-node-container {
	background-color: #935af6;
}
.flow-node.condition .flow-node-container{
	background-color: #fff;
}
.flow-node.condition .flow-node-container .node-title{
	color: #2eb795;
	border-bottom: 1px solid #f6f6f7;
}

.flow-node .flow-node-container .node-content {
	background-color: #fff;
	padding: 7px 6px 7px 7px;
	margin: 0 4px 4px;
	border-radius: 4px;
	font-size: 14px;
	color: #3e4759;
}

.flow-node .approval>.bottom-v-line,
.flow-node .cc>.bottom-v-line,
.flow-node .handle>.bottom-v-line,
.flow-node .start>.bottom-v-line,
.flow-node .condition>.bottom-v-line{
	position: absolute;
	background-color: #c2c5cc;
	width: 1px;
	height: 150px;
	bottom: 1px;
	left: 99.5px;
	box-sizing: border-box;
	z-index: -1;
}

.add-node-btn {
	position: absolute;
	box-sizing: initial;
	left: 85px;
	height: 28px;
	width: 28px;
	bottom: 31px;
}

.add-node-btn .add-btn {
	height: 28px;
	width: 28px;
	color: #37f;
	text-align: center;
	border-radius: 50%;
	border: 1px solid transparent;
	font-size: 24px;
	line-height: 24px;
	background-color: #fff;
	filter: drop-shadow(0 4px 8px rgba(31, 35, 41, .1));
	cursor: pointer;
}

.add-btn:hover {

	border-color: #3370ff;
	background-color: #fff;
	box-shadow: 0 6px 24px rgba(51, 112, 255, .24);
}

.add-node-btn .add-node-types {
	display: none;
	position: absolute;
	top: -2px;
	left: 38px;
	width: 181px;
	background-color: #fff;
	color: #1f2329;
	box-sizing: border-box;
	border-radius: 6px;
	padding: 3px;
	box-shadow: 0 8px 24px 8px rgba(31, 35, 41, .04), 0 6px 12px 0 rgba(31, 35, 41, .04), 0 4px 8px -8px rgba(31, 35, 41, .06);
	font-size: 14px;
	z-index: 4;
}

.add-node-btn .add-node-types .node-type-wrap {
	line-height: 1.5;
	font-variant: tabular-nums;
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px;
	height: 26px;
	border-radius: 4px;
	cursor: pointer;
}

.add-node-btn .add-node-types .node-type-wrap:hover {
	background-color: rgba(31, 35, 41, .08);
}

.add-node-btn .add-node-types .node-type-wrap .node-type {
	display: flex;
}

.add-node-btn .add-node-types .node-type-wrap .node-type .node-type-icon {
	width: 16px;
	margin-right: 8px;
}

.add-node-btn .add-node-types .node-type-wrap .node-type img {
	width: 16px;
	position: absolute;
	top: 12px;
}

.flow-node .bottom-v-arrow {
	position: absolute;
	bottom: 0px;
	width: 10px;
	height: 10px;
	left: calc(50% - 5px);
	transform: matrix(1, 0, 0, -1, 0, 0);
	border-bottom: 10px solid #c2c5cc;
	border-right: 5px solid transparent;
	border-left: 5px solid transparent;
	background-color: #f0f0f2;
	box-sizing: border-box;
}

/* route */
.route {
	display: flex;
	flex-direction: column;
	position: relative;
	/* border: 1px dotted red; */
}

.route div {
	box-sizing: border-box;
}

.route .top-h-line {
	transform: translateY(-11px);
	height: 1px;
	background-color: #c2c5cc;
	margin-top: 14.5px;
	margin-bottom: -15.5px;
	width: calc(100% - 200px);
	margin-left: 100px;
}

.route .add-branch {
	top: -11px;
	position: relative;
	height: 30px;
	margin-bottom: 16px;
	border-radius: 15px;
	border: 1px solid transparent;
	align-self: center;
	color: #37f;
	font-size: 12px;
	cursor: pointer;
	z-index: 1;
	box-shadow: 0 4px 8px rgba(31, 35, 41, .1);
}

.route .add-branch:hover {
	border: 1px solid #37f;
	box-shadow: 0 6px 24px rgba(51, 112, 255, .24);
}

.route .add-branch .add-branch-inner {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	padding: 0 12px;
	border: none;
	border-radius: 14px;
	background-color: #fff;
}


.branchs {
	display: flex;
	justify-content: center;
	align-content: flex-end;
	flex-direction: row;
	
}

.branchs .branch {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	margin-right: 40px;
	min-height: 100%;
}

.branchs .branch .top-v-line {
	height: 42.5px;
	top: -41.5px;
	display: block;
	position: absolute;
	width: 1px;
	background-color: #c2c5cc;
}

.branchs .branch:first-child {
	margin-left: 0px;
}

.branchs .branch:last-child {
	margin-right: 0px;
}

.branchs .branch:first-child .top-v-line {
	left: calc(50% - .5px);
}

.route>.bottom-h-line {
	height: 1px;
	background-color: #c2c5cc;
	width: calc(100% - 200px);
	margin-left: 100px;
}

.route .branch>.bottom-v-line {
	display: block;
	width: 1px;
	background-color: #c2c5cc;
	flex-grow: 1;
}

.flow-node.route>.bottom-v-line {
	height: 100px;
	width: 1px;
	background-color: #c2c5cc;
	align-self: center;
}

.flow-node.route>.add-node-btn{
	bottom: 50px;
	left: 50%;
	box-sizing: initial;
	transform: translateY(50%) translateX(-50%);
}